package com.dmgis.qxfw.dataservice.pages.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * 功能描述：
 *
 * @auther： zhangyonglong
 * @date：
 * @return：
 * @description
 */
public class Level1Permission {
    private int id;
    private String title;
    private List<Level2Permission> level2 = new ArrayList<>();

    public Level1Permission() {
    }

    public Level1Permission(int id, String title, List<Level2Permission> level2) {
        this.id = id;
        this.title = title;
        this.level2 = level2;
    }

    public Level1Permission(int level1Id, String level1Title) {
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return level2
     */
    public List<Level2Permission> getLevel2() {
        return level2;
    }

    /**
     * 设置
     * @param level2
     */
    public void setLevel2(List<Level2Permission> level2) {
        this.level2 = level2;
    }

    public String toString() {
        return "Level1Permission{id = " + id + ", title = " + title + ", level2 = " + level2 + "}";
    }
}
